package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PhotoLateMapper;
import com.ruoyi.system.domain.PhotoLate;
import com.ruoyi.system.service.IPhotoLateService;

/**
 * 晚到拍照记录Service业务层处理
 * 
 * @author xyz
 * @date 2025-06-28
 */
@Service
public class PhotoLateServiceImpl implements IPhotoLateService 
{
    @Autowired
    private PhotoLateMapper photoLateMapper;

    /**
     * 查询晚到拍照记录
     * 
     * @param id 晚到拍照记录主键
     * @return 晚到拍照记录
     */
    @Override
    public PhotoLate selectPhotoLateById(Long id)
    {
        return photoLateMapper.selectPhotoLateById(id);
    }

    /**
     * 查询晚到拍照记录列表
     * 
     * @param photoLate 晚到拍照记录
     * @return 晚到拍照记录
     */
    @Override
    public List<PhotoLate> selectPhotoLateList(PhotoLate photoLate)
    {
        return photoLateMapper.selectPhotoLateList(photoLate);
    }

    /**
     * 新增晚到拍照记录
     * 
     * @param photoLate 晚到拍照记录
     * @return 结果
     */
    @Override
    public int insertPhotoLate(PhotoLate photoLate)
    {
        return photoLateMapper.insertPhotoLate(photoLate);
    }

    /**
     * 修改晚到拍照记录
     * 
     * @param photoLate 晚到拍照记录
     * @return 结果
     */
    @Override
    public int updatePhotoLate(PhotoLate photoLate)
    {
        return photoLateMapper.updatePhotoLate(photoLate);
    }

    /**
     * 批量删除晚到拍照记录
     * 
     * @param ids 需要删除的晚到拍照记录主键
     * @return 结果
     */
    @Override
    public int deletePhotoLateByIds(Long[] ids)
    {
        return photoLateMapper.deletePhotoLateByIds(ids);
    }

    /**
     * 删除晚到拍照记录信息
     * 
     * @param id 晚到拍照记录主键
     * @return 结果
     */
    @Override
    public int deletePhotoLateById(Long id)
    {
        return photoLateMapper.deletePhotoLateById(id);
    }
}
